package com.heartbeat.domain;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="page"
 *     
*/
public class Page implements Serializable {

    /** identifier field */
    private Integer id;

    /** persistent field */
    private int siteId;

    /** nullable persistent field */
    private String domainName;

    /** persistent field */
    private String url;

    /** nullable persistent field */
    private Date createTime;

    /** nullable persistent field */
    private Boolean hasSpided;

    /** nullable persistent field */
    private Integer responseCode;

    /** nullable persistent field */
    private Boolean tryTimes;

    /** nullable persistent field */
    private Integer hashCode;

    /** nullable persistent field */
    private Boolean hasSpidedContent;

    /** full constructor */
    public Page(int siteId, String domainName, String url, Date createTime, Boolean hasSpided, Integer responseCode, Boolean tryTimes, Integer hashCode, Boolean hasSpidedContent) {
        this.siteId = siteId;
        this.domainName = domainName;
        this.url = url;
        this.createTime = createTime;
        this.hasSpided = hasSpided;
        this.responseCode = responseCode;
        this.tryTimes = tryTimes;
        this.hashCode = hashCode;
        this.hasSpidedContent = hasSpidedContent;
    }

    /** default constructor */
    public Page() {
    }

    /** minimal constructor */
    public Page(int siteId, String url) {
        this.siteId = siteId;
        this.url = url;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="id"
     *             unsaved-value="0"
     *         
     */
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="siteId"
     *             length="5"
     *             not-null="true"
     *         
     */
    public int getSiteId() {
        return this.siteId;
    }

    public void setSiteId(int siteId) {
        this.siteId = siteId;
    }

    /** 
     *            @hibernate.property
     *             column="domainName"
     *             length="150"
     *         
     */
    public String getDomainName() {
        return this.domainName;
    }

    public void setDomainName(String domainName) {
        this.domainName = domainName;
    }

    /** 
     *            @hibernate.property
     *             column="url"
     *             length="200"
     *             not-null="true"
     *         
     */
    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    /** 
     *            @hibernate.property
     *             column="createTime"
     *             length="19"
     *         
     */
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /** 
     *            @hibernate.property
     *             column="hasSpided"
     *             length="1"
     *         
     */
    public Boolean getHasSpided() {
        return this.hasSpided;
    }

    public void setHasSpided(Boolean hasSpided) {
        this.hasSpided = hasSpided;
    }

    /** 
     *            @hibernate.property
     *             column="responseCode"
     *             length="5"
     *         
     */
    public Integer getResponseCode() {
        return this.responseCode;
    }

    public void setResponseCode(Integer responseCode) {
        this.responseCode = responseCode;
    }

    /** 
     *            @hibernate.property
     *             column="tryTimes"
     *             length="1"
     *         
     */
    public Boolean getTryTimes() {
        return this.tryTimes;
    }

    public void setTryTimes(Boolean tryTimes) {
        this.tryTimes = tryTimes;
    }

    /** 
     *            @hibernate.property
     *             column="hashCode"
     *             length="11"
     *         
     */
    public Integer getHashCode() {
        return this.hashCode;
    }

    public void setHashCode(Integer hashCode) {
        this.hashCode = hashCode;
    }

    /** 
     *            @hibernate.property
     *             column="hasSpidedContent"
     *             length="1"
     *         
     */
    public Boolean getHasSpidedContent() {
        return this.hasSpidedContent;
    }

    public void setHasSpidedContent(Boolean hasSpidedContent) {
        this.hasSpidedContent = hasSpidedContent;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
